<div class="section"> 
  <script type="text/javascript">
	function check(){
		if(document.sac.sheep_name.value == ""){
			alert("Please enter your cruise!");
			document.sac.sheep_name.focus();
			return false;
		}
		if(isNaN(document.sac.sheep_order.value)){
			alert("Order by is number character");
			document.sac.sheep_order.focus();
			return false;
		}
	}
	function opengale($id){
		window.open("<?php echo base_url()."agency/album/index/"; ?>"+$id,"_blank","toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=600,height=300");
	}
  </script> 
  <div class="title_wrapper"> <span class="title_wrapper_top"></span>
    <div class="title_wrapper_inner"> <span class="title_wrapper_middle"></span>
      <div class="title_wrapper_content">
        <h2 class="menu_title">Edit cruise</h2>
      </div>
    </div>
    <span class="title_wrapper_bottom"></span> </div>
  <div class="section_content"> <span class="section_content_top"></span>
    <div class="section_content_inner minheight">
      <div class="table_tabs_menu">      
      </div>
      <!--[if !IE]>start table_wrapper<![endif]-->
      <div class="table_wrapper" style="background:none;">
        <div class="table_wrapper_inner">
          <div class="error_red">
            <?php if(isset($error)) { echo "<p>".$error."</p>"; } echo validation_errors(); ?>
          </div>
          <form action="<?php echo base_url()?>agency/cruises/update/<?php echo $getdata['sheep_id']?>" method="post" name="sac" onsubmit="return check()" enctype="multipart/form-data">
            <div class="form_items">
              <div class="form_items_left">Name of cruise <span class="reds">*</span></div>
              <div class="form_items_right">
                <input type="text" name="sheep_name" value="<?php echo $getdata['sheep_name']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Adress</div>
              <div class="form_items_right">
                <input type="text" name="sheep_ltinerary" class="test" value="<?php echo $getdata['sheep_ltinerary']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Phone number</div>
              <div class="form_items_right">
                <input type="text" name="sheep_phone" value="<?php echo $getdata['sheep_phone']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Email adress</div>
              <div class="form_items_right">
                <input type="text" name="sheep_email" value="<?php echo $getdata['sheep_email']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Website</div>
              <div class="form_items_right">
                <input type="text" name="sheep_site" value="<?php echo $getdata['sheep_site']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Order by</div>
              <div class="form_items_right">
                <input name="sheep_order" type="text" value="<?php echo $getdata['sheep_order']?>" size="35">
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Price promotion</div>
              <div class="form_items_right">
                <input name="sheep_price" type="text" value="<?php echo $getdata['sheep_price']?>" size="35">
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Price normal</div>
              <div class="form_items_right">
                <input name="sheep_price_old" type="text" value="<?php echo $getdata['sheep_price_old']?>" size="35">
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">SEO Keywords</div>
              <div class="form_items_right">
                <textarea name="sheep_keys" cols="30" rows="3"><?php echo $getdata['sheep_keys']?></textarea>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">SEO Description</div>
              <div class="form_items_right">
                <textarea name="sheep_des" cols="30" rows="3"><?php echo $getdata['sheep_des']?></textarea>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Status</div>
              <div class="form_items_right">
                <input type="radio" value="1" name="sheep_status" <?php if($getdata['sheep_status'] == 1){ echo "checked='checked'";} ?> />
                Yes
                <input type="radio" value="0" name="sheep_status" <?php if($getdata['sheep_status'] == 0){ echo "checked='checked'";} ?> />
                No </div>
            </div>
            <div class="form_items" style="margin:5px 0px;">
              <div class="form_items_left">Duration</div>
              <div class="form_items_right">
                <input type="checkbox" value="1" name="sheep_tour1" class="check" <?php if($getdata['sheep_tour1'] == 1){ echo "checked='checked'";} ?> />
                One day
                <input type="checkbox" value="1" name="sheep_tour2" class="check" <?php if($getdata['sheep_tour2'] == 1){ echo "checked='checked'";} ?> />
                2 days 1 night
                <input type="checkbox" value="1" name="sheep_tour3" class="check" <?php if($getdata['sheep_tour3'] == 1){ echo "checked='checked'";} ?> />
                3 days 2 nights
                <input type="checkbox" value="1" name="sheep_tour4" class="check" <?php if($getdata['sheep_tour4'] == 1){ echo "checked='checked'";} ?> />
                4 days 3 nights
                <input type="checkbox" value="1" name="sheep_tour5" class="check" <?php if($getdata['sheep_tour5'] == 1){ echo "checked='checked'";} ?> />
                more than </div>
            </div>
            <div class="form_items" style="margin-top:5px;">
              <div class="form_items_left">Logo of cruise</div>
              <div class="form_items_right">
                <?php
				if($getdata['sheep_logo'] != NULL){
					echo "<img src='".base_url()."uploads/sheep/logo/thumb/".$getdata['sheep_logo']."' alt='' />";
				}
				?>
                <input name="sheep_logo" type="file" id="sheep_logo" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Slide image of cruise<i style="color:#F00;font-size:11px">(980x336)</i></div>
              <div class="form_items_right">
                <?php
				if($getdata['sheep_image'] != NULL){
					echo "<img src='".base_url()."uploads/sheep/logo/thumb/".$getdata['sheep_image']."' alt='' width='120' height='77' />";
				}
				?>
                <input name="sheep_image" type="file" id="sheep_image" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Image thumb</div>
              <div class="form_items_right">
                <?php
				if($getdata['sheep_image_thumb'] != NULL){
					echo "<img src='".base_url()."uploads/sheep/logo/thumbs/".$getdata['sheep_image_thumb']."' alt='' width='120' height='77' />";
				}
				?>
                <input name="sheep_image_thumb" type="file" id="sheep_image_thumb" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Gallery images</div>
              <div class="form_items_right" style="margin:10px 0px">
              	<table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><a href="javascript:void(0)" onclick="opengale(<?php echo $getdata['album_id']; ?>)" style="color:#F00;font-weight:bold"><img src="<?php echo base_url(); ?>public/admin/images/gallery.jpg" width="50" style="float:left" /> Manage gallery</a></td>
                    <td>
					<?php if(isset($listimg)){ foreach($listimg as $image){ ?>
                    	<img src="<?php echo base_url()."uploads/albums/gallerys/thumb/".$image['gallery_image']; ?>" width="60" />
                    <?php } } ?>
              		</td>
                  </tr>
                </table>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Fact sheet link</div>
              <div class="form_items_right">
                <input name="sheep_fact" type="text" value="<?php echo $getdata['sheep_fact']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Menu link</div>
              <div class="form_items_right">
                <input name="sheep_menu" type="text" value="<?php echo $getdata['sheep_menu']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Drink link</div>
              <div class="form_items_right">
                <input name="sheep_drink" type="text" value="<?php echo $getdata['sheep_drink']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Link video</div>
              <div class="form_items_right">
                <input name="sheep_video" type="text" value="<?php echo $getdata['sheep_videos']?>" size="35" />
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">Introduction about cruise</div>
              <div class="form_items_right">
                <?php 
				$fck = new FCKeditor('sheep_info');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_info'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
			   ?>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">What is inculude</div>
              <div class="form_items_right">
                <?php
				$fck = new FCKeditor('sheep_include');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_include'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
				?>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">One day</div>
              <div class="form_items_right">
                <?php 
				$fck = new FCKeditor('sheep_1day');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_1day'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
			    ?>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">2 days 1 night</div>
              <div class="form_items_right">
                <?php 
				$fck = new FCKeditor('sheep_2day');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_2day'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
			   ?>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">3 days 2 nights</div>
              <div class="form_items_right">
                <?php 
				$fck = new FCKeditor('sheep_3day');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_3day'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
				?>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">4 days 3 nights</div>
              <div class="form_items_right">
                <?php 
				$fck = new FCKeditor('sheep_4day');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_4day'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
			    ?>
              </div>
            </div>
            <div class="form_items">
              <div class="form_items_left">More than</div>
              <div class="form_items_right">
                <?php 
				$fck = new FCKeditor('sheep_5day');
				$fck->BasePath = sBASEPATH;
				$fck->Value  = $getdata['sheep_5day'];
				$fck->Width  = '100%';
				$fck->Height = 400;
				$fck->Create();
			   ?>
              </div>
            </div> 
            <div class="form_items">
              <div class="form_items_left">&nbsp;</div>
              <div class="form_items_right">
                <input type="submit" name="ok" value="Edit cruise" class="magin" />
                <input type="reset" value="Reset" class="magin" />
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
    <span class="section_content_bottom"></span> </div>
</div>
